package com.industrial.premu.service.impl;

import com.industrial.premu.domain.PreMuBenefitEvaluation;
import com.industrial.premu.dto.PreMuChartsDto;
import com.industrial.premu.mapper.PreMuEnergyConsumptionIndexAnalysisMapper;
import com.industrial.premu.service.PreMuEnergyConsumptionIndexAnalysisService;
import com.industrial.premu.vo.PreMuChartsVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 能耗
 */
@Service
public class PreMuEnergyConsumptionIndexAnalysisServiceImpl implements PreMuEnergyConsumptionIndexAnalysisService {

    @Autowired
    private PreMuEnergyConsumptionIndexAnalysisMapper preMuEnergyConsumptionIndexAnalysisMapper;

    /**
     * 查询区域表格
     *
     * @param preChartsDto
     * @return
     */
    @Override
    public List<PreMuBenefitEvaluation> queryAreaTable(PreMuChartsDto preChartsDto) {
        List<PreMuBenefitEvaluation> r =preMuEnergyConsumptionIndexAnalysisMapper.queryAreaTable(preChartsDto);
        return r;
    }

    /**
     * 查询图表
     *
     * @param preChartsDto
     * @return
     */
    @Override
    public List<PreMuBenefitEvaluation> queryAreaEcharts(PreMuChartsDto preChartsDto) {
        List<PreMuBenefitEvaluation> r =preMuEnergyConsumptionIndexAnalysisMapper.queryAreaTable(preChartsDto);
        return r;
    }

    /**
     * 行业表格
     *
     * @param preChartsDto
     * @return
     */
    @Override
    public List<PreMuBenefitEvaluation> queryHyTable(PreMuChartsDto preChartsDto) {
        List<PreMuBenefitEvaluation> r =preMuEnergyConsumptionIndexAnalysisMapper.queryHyTable(preChartsDto);
        return r;
    }

    /**
     * 查询行业图表
     *
     * @param preChartsDto
     * @return
     */
    @Override
    public List<PreMuBenefitEvaluation> queryHyEcharts(PreMuChartsDto preChartsDto) {
        List<PreMuBenefitEvaluation> r =preMuEnergyConsumptionIndexAnalysisMapper.queryHyTable(preChartsDto);
        return r;
    }

    @Override
    public List<PreMuChartsVo> groupEconomyByYears(PreMuChartsDto preChartsDto) {
        return preMuEnergyConsumptionIndexAnalysisMapper.groupEconomyByYears(preChartsDto);
    }

    @Override
    public List<PreMuChartsVo> groupEconomyByCityAndCounty(PreMuChartsDto preChartsDto) {
        return preMuEnergyConsumptionIndexAnalysisMapper.groupEconomyByCityAndCounty(preChartsDto);
    }

    @Override
    public List<PreMuChartsVo> groupEconomyByProvince(PreMuChartsDto preChartsDto) {
        return preMuEnergyConsumptionIndexAnalysisMapper.groupEconomyByProvince(preChartsDto);
    }
}
